<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
<!--<title><?php echo ($mob_seo['title']); ?> | <?php echo modC('WEBSITE_NAME','OpenSNS','Mob');?></title>  -->
<title> 有乎儿</title>
<meta name="keywords" content="<?php echo ($mob_seo['keywords']); ?>">
<meta name="description" content="<?php echo ($mob_seo['description']); ?>">

<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="format-detection" content="telephone=no">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp"/>

<script src="/os/Application/Mob/Static/js/jquery.min.js"></script>
<script src="/os/Application/Mob/Static/js/amazeui.min.js"></script>
<script src="/os/Public/js/com/com.functions.js"></script>
<script src="/os/Application/Mob/Static/js/toast.js"></script>
<script src="/os/Application/Mob/Static/js/apps/base.js"></script>


<script src="/os/Public/js/ext/magnific/jquery.magnific-popup.min.js"></script>
<script src="/os/Application/Mob/Static/js/toastr/toastr.min.js"></script>
<script src="/os/Application/Mob/Static/js/toast.js"></script>
<script src="/os/Application/Mob/Static/js/dist/lrz.mobile.min.js"></script>

<link rel="stylesheet" href="/os/Application/Mob/Static/css/amazeui.min.css"/>




<link rel="stylesheet" href="/os/Application/Mob/Static/css/app.css"/>
<link rel="stylesheet" href="/os/Application/Mob/Static/js/toastr/toastr.min.css" />
<link rel="stylesheet" href="/os/Application/Mob/Static/js/diyUpload.css"/>
<link rel="stylesheet" href="/os/Application/Mob/Static/css/apps/core.css"/>
<link rel="stylesheet" href="/os/Public/js/ext/magnific/magnific-popup.css"/>
<link rel="alternate icon" type="image/png" href="assets/i/favicon.png">
<!--用于加载顶部css和js-->
<?php $config = api('Config/lists'); C($config); $count_code=C('_MOB_STATISTICALCODE'); if(empty($count_code)){ $count_code=C('COUNT_CODE'); } ?>

<script type="text/javascript">
    //全局内容的定义
    var _ROOT_ = "/os";
    var MID = "<?php echo is_login();?>";
    var MODULE_NAME="<?php echo MODULE_NAME; ?>";
    var ACTION_NAME="<?php echo ACTION_NAME; ?>";
    var CONTROLLER_NAME ="<?php echo CONTROLLER_NAME; ?>";
    var ThinkPHP = window.Think = {
        "ROOT": "/os", //当前网站地址
        "APP": "/os/index.php?s=", //当前项目地址
        "PUBLIC": "/os/Public", //项目公共目录地址
        "DEEP": "<?php echo C('URL_PATHINFO_DEPR');?>", //PATHINFO分割符
        "MODEL": ["<?php echo C('URL_MODEL');?>", "<?php echo C('URL_CASE_INSENSITIVE');?>", "<?php echo C('URL_HTML_SUFFIX');?>"],
        "VAR": ["<?php echo C('VAR_MODULE');?>", "<?php echo C('VAR_CONTROLLER');?>", "<?php echo C('VAR_ACTION');?>"],
        'URL_MODEL': "<?php echo C('URL_MODEL');?>",
        'WEIBO_ID': "<?php echo C('SHARE_WEIBO_ID');?>"
    }

    var weibo_comment_order = "<?php echo modC('COMMENT_ORDER',0,'WEIBO');?>";
</script>

<script>
    //全局内容的定义
    var _LOADING_ = "/os/Application/Mob/Static/images/loading.jpg";
</script>
    </head>
    <body>
        <!-- 头部 -->
        <?php D('Member')->need_login(); ?>
<style>
    .header {
        text-align: center;
    }

    .header h1 {
        font-size: 200%;
        color: #333;
        margin-top: 30px;
    }

    .header p {
        font-size: 14px;
    }
</style>
<div data-am-widget="header" class="am-header am-header-default am-header-fixed am-cf">
    <?php if(!empty($top_menu_list["left"])): ?><div class="am-header-left am-header-nav">

            <?php if(is_array($top_menu_list["left"])): $i = 0; $__LIST__ = $top_menu_list["left"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$menu): $mod = ($i % 2 );++$i; switch($menu["type"]): case "home": ?><a href="<?php echo ($menu["href"]); ?>" class="am-fl <?php echo ($menu["a_class"]); ?>">
                            <i class="am-header-icon am-icon-home <?php echo ($menu["i_class"]); ?>"></i><?php echo ($menu["html"]); ?>
                        </a><?php break;?>
                    <?php case "back": ?><a id="goback" need-confirm="<?php echo ($menu["need_confirm"]); ?>" confirm-info="<?php echo ($menu["confirm_info"]); ?>"
                           class="<?php echo ($menu["a_class"]); ?>">
                            <span class="am-icon-chevron-left <?php echo ($menu["span_class"]); ?>"></span>
                        </a><?php break;?>
                    <?php case "message": if (is_login()) { ?>
                        <?php echo W('Mob/Message/index');?>
                        <?php } break; endswitch; endforeach; endif; else: echo "" ;endif; ?>
        </div><?php endif; ?>

    <h1 class="am-header-title <?php echo ($top_menu_list["center"]["h1_class"]); ?>">
        <i class="<?php echo ($top_menu_list["center"]["i_class"]); ?>"></i>
        <?php echo ((isset($top_menu_list["center"]["title"]) && ($top_menu_list["center"]["title"] !== ""))?($top_menu_list["center"]["title"]):"首页"); ?>
    </h1>
    <?php if(!empty($top_menu_list["right"])): ?><div class="am-header-right am-header-nav">
            <?php if(is_array($top_menu_list["right"])): $i = 0; $__LIST__ = $top_menu_list["right"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$right): $mod = ($i % 2 );++$i; switch($right["type"]): case "edit": if(isset($right['href'])): ?><a href="<?php echo ($right['href']); ?>" class="am-fl <?php echo ($right["a_class"]); ?>">
                        <!-- <a href="<?php echo U('Mob/Task/addTask');?>" class="am-fl <?php echo ($right["a_class"]); ?>"> -->

                                <i class="am-header-icon am-icon-pencil <?php echo ($right["i_class"]); ?>"></i>
                            </a>
                            <?php else: ?>
                            <script>
                                var tip_info="<?php echo ($right['info']); ?>";
                            </script>
                            <a class="am-fl <?php echo ($right['a_class']); ?>" href="javascript:void(0);" onclick="toast.error(tip_info)">
                                <i class="am-header-icon am-icon-pencil <?php echo ($right["i_class"]); ?>"></i>
                            </a><?php endif; break; endswitch; endforeach; endif; else: echo "" ;endif; ?>
            <a href="#" class="">
            </a>
        </div><?php endif; ?>
</div>
<?php if(CONTROLLER_NAME != 'Index'): ?><link href="/os/Application/Mob/Static/js/toastr/toastr.min.css" rel="stylesheet"/>

<div id="demo-view" class="" data-backend-compiled="" style="z-index: 1040">
    <nav data-am-widget="menu" class="am-menu am-menu-offcanvas1 am-no-layout" data-am-menu-offcanvas=""><a
            href="javascript: void(0)" class="am-menu-toggle"><i class="am-menu-toggle-icon am-icon-bars"></i></a>

        <div class="am-offcanvas "
             style="touch-action: pan-y; -webkit-user-select: none; -webkit-user-drag: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);">
            <div class="am-offcanvas-bar am-offcanvas-bar-flip">
                <div class="am-text-center" id="user" style="display: none">
                    <?php $user=query_user(array('nickname','avatar64')); ?>
                    <?php $map = array('status' => array('gt', -1), 'pid' => 0,'url'=>array('eq','mob/user/index')); $list=D('MobChannel')->where($map)->find(); if($list){ ?>
                    <a style="text-indent: 0px;" href="<?php echo U('mob/user/index');?>">
                        <img class="avatar-img" style="border-radius: 100%;width:64px;margin-top:20px "
                             src="<?php echo ($user["avatar64"]); ?>">
                    </a><?php }else{ ?>
                    <a style="text-indent: 0px;" >
                        <img class="avatar-img" style="border-radius: 100%;width:64px;margin-top:20px "
                             src="<?php echo ($user["avatar64"]); ?>">
                    </a>
                    <?php } ?>

                    <div class="am-text-center">
                        <a class="am-text-truncate" style="color: #fff; width: 81px;
  display: block;
  margin: 0 auto;"><?php echo ($user["nickname"]); ?></a>
                    </div>
                </div>
                <div class="am-text-center" id="signin"
                     style="display: block;font-size: 18px ; height: 44px;line-height: 44px;">
                    <a href="<?php echo U('mob/Member/index');?>">
                        <i class="am-icon-sign-in"></i>
                        &nbsp;&nbsp;&nbsp;登录
                    </a>
                </div>
                <ul class="am-menu-nav am-avg-sm-1 am-text-center">

                    <?php $map = array('status' => array('gt', -1), 'pid' => 0,'url'=>array('neq','mob/user/index')); $list=D('MobChannel')->where($map)->select(); foreach($list as &$v ){ $v['url']=U($v['url']); } ?>
                    <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li>
                            <a style="text-indent: 0px;" href="<?php echo ($vo["url"]); ?>">
                                <i class="<?php echo ($vo["icon"]); ?>"></i>
                                &nbsp;&nbsp;&nbsp;<?php echo ($vo["title"]); ?>
                            </a>
                        </li><?php endforeach; endif; else: echo "" ;endif; ?>



                    <?php if (is_login()) { ?>
                   <!--
                    <li>
                        <a style="text-indent: 0px;" href="<?php echo U('message/index');?>" class="am-icon-bell-o">
                            <i ></i>
                            &nbsp;&nbsp;&nbsp;消息
                        </a>
                    </li>
                    -->
                    <?php } ?>
                </ul>
                <div class="am-text-center" id="signout" style="display: none;padding: 5px 0px">
                    <a>
                        <i class="am-icon-sign-out"></i>
                        &nbsp;&nbsp;&nbsp;退出
                    </a>
                </div>
            </div>
        </div>
    </nav>
</div>
<script src="/os/Application/Mob/Static/js/toastr/toastr.min.js"></script>
<script src="/os/Application/Mob/Static/js/toast.js"></script>
<script>
    var uid = '<?php echo is_login();?>';
    $(document).ready(function () {
        signout();
        if (uid > 0) {
            $('#user').show()
            $('#signin').hide()
            $('#signout').show()
        } else {
            $('#user').hide()
            $('#signin').show()
            $('#signout').hide()
        }

    });

    var signout = function () {
        $('#signout').click(function () {
            $.post("<?php echo U('Mob/Member/logout');?>", {}, function (msg) {
                if (msg.status == 1) {
                    setTimeout(function () {
                        window.location.reload();
                    }, 2000);
                    toast.success('退出成功!');
                } else {
                    toast.error(msg.info);
                }
            }, 'json')
        });
    }
</script><?php endif; ?>



        <!-- /头部 -->

        <!-- 主体 -->
        

<link rel="stylesheet" type="text/css" href="/os/Application/Mob/Static/css/apps/sync.css"/>
<script src="/os/Application/Mob/Static/js/jquery-1.11.3.min.js"></script>
<script src="/os/Application/Mob/Static/js/bootstrap.js"></script>
<link rel="stylesheet" href="/os/Application/Mob/Static/css/apps/bootstrap.css">


    <div class="header">
        <div class="am-g">
           <!-- <h1><?php echo modC('WEBSITE_NAME','有乎儿','Mob');?></h1> -->
          <img src="/os/Public/images/youhuor.png" width="200px">
            <p><?php echo modC('SUMMARY','');?></p>
        </div>
        <hr/>
    </div>

<div id="mob-main-container" class="container">
   
     <div align="center"  id="denglu">
                <div><span><strong>欢迎加入有乎儿：</strong></span></div>
                    <div style="margin-top: 20px;" align="center">
                不用注册,可从微信一键登录
            <div class="other_login_link" >

            <a href="<?php echo U('WxUser/loginPortal',array('redirect'=>$redirect));?>"  class="other_login other_login_weixin"><img src="/os/Application/Mob/Static/images/weixin4.png" width="512px" ></a>
            </div>
                    </div></div>
            <link href="css/button.css" rel="stylesheet">
            <div align="center">
               <label style="border-style:dashed; border:thin; width:100%; height:20px; border-radius:5px" class="  am-input-group-label" for="RadioGroup1" onClick="change_color1()" id="RadioGroup1" data-toggle="modal" data-target="#myModal">
             <input type="radio" name="RadioGroup5" value="5" id="RadioGroup5" hidden="">
             登录前，请先阅读用户须知</label>
            </div>

<!--            </form-->
    </div>
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header" align="center">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">用户须知</h4>
      </div>
      <div class="modal-body">
      <span> <font color="#000000"> 欢迎进入有乎儿，请您在使用之前详细阅读用户须知，以免造成不必要的损失。您可以选择不使用有乎儿，但如果您使用有乎儿，则表示您赞同并同意遵守以下全部内容。</font></span><br>

<span>用户须知:</span><br>


<p>1.	有乎儿拥有所有在平台内资料的版权，任何被授权的浏览、复制、打印和传播属于本网站内的资料必须符合以下条件：
所有的资料和图象均以获得信息为目的；
所有的资料和图象均不得用于商业目的；
所有的资料、图象及其任何部分都必须包括此版权声明<br>
或获取信息。<br>
2.	有乎儿平台是一个针对学生群里，集信息分享和获取于一体的服务型平台，用户可以在有乎儿平台中发布信息，用户身份必须为在校师生。<br>

3.	用户可以选择注册账号或者用微信等合作平台账号登录。<br>

4.	您进入有乎儿之后，无论是否登录，都表示您完全接受并同意遵守此协议。如果您在使用之前或使用时对此协议有任何疑义或质疑，请您停止使用有乎儿提供的全部服务。<br>
5.	有乎儿在需要对用户做相关认证是，请用户积极配合并提供认证所需信息，否则有乎儿将对未提供认证所需信息的用户做封号等处理，直至用户提供认证所需信息。<br>
6.	用户承诺不得以任何方式直接或间接从事违反中国法律及社会公德的活动，如果有以上行为，有乎儿有权将该内容删除。<br>
7.	用户不得利用有乎儿提供的服务制作、上载、复制、发布、传播或者转载如下内容：
反对宪法所确定的基本原则的；
危害国家安全，泄露国家秘密，颠覆国家政权，破坏国家统一的；
损害国家荣誉和利益的；
煽动民族仇恨、民族歧视，破坏民族团结的；
破坏国家宗教政策，宣扬邪教和封建迷信的；
散布谣言，扰乱社会秩序，破坏社会稳定的；
散布淫秽、色情、赌博、暴力、凶杀、恐怖或者教唆犯罪的；
侮辱或者诽谤他人，侵害他人合法权益的；
含有法律、行政法规禁止的其他内容的信息。<br>
8.	知乎有权对用户使用知乎的情况进行审查和监督，如用户在使用知乎时违反任何上述规定，知乎或其授权的人有权要求用户改正或直接采取一切必要的措施（包括但不限于更改或删除用户张贴的内容、暂停或终止用户使用知乎的权利）以减轻用户不当行为造成的影响。<br>

免责声明:<br>
1.	在有乎儿上的提问是出于用户自身需求，与有乎平台无关。<br>
2.	所有提问及回答均属于个人或单位行为，不代表有乎儿平台的立场和观点，有乎不对任何提问及回答承担法律责任。<br>
3.	因为有乎儿使用的是微信平台的红包功能，所以不通过微信登录的用户将无法抢得红包，有乎儿对此不承担任何责任。<br>
4.	当有乎儿需要对用户信息做认证时，如果用户不在认证规定时间内提供要求提供的信息，有乎儿将对此类用户进行封号等处理，对使用造成的影响由此类用户自行承担。<br>
5.	当您在使用有乎儿进行信息交互的时候，请注意您的个人措词及态度，如果您与其他交互方出现个人争执，有乎儿将不对此负任何责任。<br>
6.	有乎儿尊重并保护所有使用有乎儿用户的个人隐私权，绝对不会在未经用户亲自许可或未根据相关法律、法规的强制规定之下将任何用户的信息主动泄露给第三方。请注意：用户在有乎儿上发布的所有信息不被视为用户的隐私。<br>
</p>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
        <button type="button" class="btn btn-primary" id="agree" onClick="agree()">同意</button>
      </div>
    </div>
  </div>
</div>




<script type="text/javascript">
   function agree(){

		 $('#myModal').modal('hide');
	   }
</script>


    <script>


        $('#conf').click(function () {
            var data = $(".am-form").serialize();
            var url = $(".am-form").attr('data-url');
            $.post(url, data, function (msg) {
                if (msg.status == 1) {
                    toast.success(msg.info);
                    setTimeout(function () {
                        location.href = "<?php echo U('Activity/activitymap');?>";
                    }, 200);
                } else {
                    toast.error(msg.info);
                }
            }, 'json');
        })
    </script>

</div>



        <!-- /主体 -->

        <!-- 底部 -->
        <div class="hide-foot am-text-center" style="display: none"><!-- 用于加载统计代码等隐藏元素 -->
    <?php echo ($count_code); ?>
    
</div>
        <!-- /底部 -->
    </body>
</html>